package io.renren.modules.nuaa.service;

import io.renren.common.service.CrudService;
import io.renren.modules.nuaa.dto.TQuestionItemDTO;
import io.renren.modules.nuaa.entity.TQuestionItemEntity;

import java.util.List;
import java.util.Map;

/**
 * 题目
 *
 * @author whc 15953295779@126.com
 * @since 3.0 2023-11-03
 */
public interface TQuestionItemService extends CrudService<TQuestionItemEntity, TQuestionItemDTO> {

    void saveTQuestionItem(TQuestionItemEntity tQuestionItemEntity);

    List<TQuestionItemEntity> selectByQuestionId(Long id);

    void submitAnswer(String id, Map answerMap, int userId);

    Map rebuildAnswer(String answers);
}